package com.hmall.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "shop_grade")
public class ShopGrade {
    @Id
    private Integer id;

    private String grade;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_date")
    private Date updateDate;

    @Column(name = "shop_id")
    private Integer shopId;

    /**
     * 状态 0:未启用  1:已启用
     */
    private Integer status;

    /**
     * 是否可以编辑 0:不能编辑  1:可以编辑
     */
    @Column(name = "can_edit")
    private Integer canEdit;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getCanEdit() {
        return canEdit;
    }

    public void setCanEdit(Integer canEdit) {
        this.canEdit = canEdit;
    }

    /**
     * 等级模板名称
     */
    private String name;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return grade
     */
    public String getGrade() {
        return grade;
    }

    /**
     * @param grade
     */
    public void setGrade(String grade) {
        this.grade = grade;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return update_date
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     * @param updateDate
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    /**
     * @return shop_id
     */
    public Integer getShopId() {
        return shopId;
    }

    /**
     * @param shopId
     */
    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    /**
     * 获取等级模板名称
     *
     * @return name - 等级模板名称
     */
    public String getName() {
        return name;
    }

    /**
     * 设置等级模板名称
     *
     * @param name 等级模板名称
     */
    public void setName(String name) {
        this.name = name;
    }
}